import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

export const useEffectsStore = defineStore('effects', () => {
  //创建的测量对象集合
  const createEffectsData = ref([])
  //判读是否有创建的测量对象
  const hasCreateEffectsData = computed(() => createEffectsData.value.length > 0)

  const openCloud = ref(false)
  const openRain = ref(false)
  const openSnow = ref(false)
  const openFog = ref(false)

  return {
    createEffectsData,
    openCloud,
    openRain,
    openSnow,
    openFog,
    hasCreateEffectsData,
  }
})
